<include file="Public/header" />
<style>
.shop_sort .shop_sort_title{width:12%;}
</style>
        <div class="comm-top">
            <h4 style="margin-bottom:0">全局设置</h4>
            <div class="add_page_top"></div>
        </div>
        <form id="dataFrom" onsubmit="return false;">
            <input type="hidden" name="info[id]" value="{$info.id}" />
            <div class="shop_sort_box">
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4><must>*</must>分享给朋友可获积分值:</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[share_app]" value="{$info.share_app|default=0}" type="text" placeholder="分享给朋友可获积分值"/>
                    </div>
                </div>

                <div class="shop_sort">
                    <div class="shop_sort_title"><h4><must>*</must>分享朋友圈可获积分值：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[share_line]" value="{$info.share_line|default=0}" type="number" placeholder="分享朋友圈可获积分值"/>
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4><must>*</must>每人每天可获积分上限：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[integral_limit]" value="{$info.integral_limit|default=0}" type="number" placeholder="每人每天可获积分上限"/>
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title"><h4><must>*</must>按天付押金值：</h4></div>
                    <div class="shop_sort_set">
                        <input class="shop_sort_text" name="info[deposit]" value="{$info.deposit|default=0}" type="text" placeholder="按天付押金值"/>
                    </div>
                </div>
				<div class="shop_sort">
                    <div class="shop_sort_title"><h4><must>*</must>是否开启VIP服务：</h4></div>
                    <div class="shop_sort_set rdo">
                        <label class="lbl"><span><input type="radio" name="info[vip_status]" {:$info['vip_status']!='2'?'checked':''} value='1'></span><span>开启</span></label>
                        <label class="lbl"><span><input type="radio" name="info[vip_status]" {:$info['vip_status']=='2'?'checked':''} value='2'></span><span>关闭</span></label>
                    </div>
                </div>
				<div class="shop_sort">
                    <div class="shop_sort_title"><h4><must>*</must>是否开启按天付服务：</h4></div>
                    <div class="shop_sort_set rdo">
                        <label class="lbl"><span><input type="radio" name="info[per_status]" {:$info['per_status']!='2'?'checked':''} value='1'></span><span>开启</span></label>
                        <label class="lbl"><span><input type="radio" name="info[per_status]" {:$info['per_status']=='2'?'checked':''} value='2'></span><span>关闭</span></label>
                    </div>
                </div>
                <div class="shop_sort">
                    <div class="shop_sort_title">
                        <h4>&nbsp;</h4>
                    </div>
                    <div class="shop_sort_set">
                        <span onclick="save(this);return false" id="saveBtn" class="btngreen30">完成</span>
<!--                         &nbsp;&nbsp;&nbsp; -->
<!--                         <span onclick="history.go(-1);" class="btngray30">返回</span> -->
                    </div>
                </div>
            </div>
        </form>
<script type="text/javascript">
function save(obj){
    $.post('{:U("")}',$('#dataFrom').serialize(),function(res){
        if(res.status == 1){
            note_info(res.info,obj);
            setTimeout('window.location.reload()',1200);
        }else{
            note_info(res.info,obj,'warn');
        }
    })
}
</script>
<include file="Public/footer"/>
